<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8"%>
<%@include file="_commonAdmin/title.jsp" %>
<%
    if (null == session.getAttribute("admin")) {
        response.sendRedirect("login.jsp");
    }
%>
<body>
    <%@include  file="_commonAdmin/header.jsp" %>
    <%@include  file="_commonAdmin/sidebar.jsp" %>
    <div class="col-main col-xs-12 col-sm-6 col-md-9">
        <h2 class="ico_mug">Member Manager</h2>
        <table id="table">
            <thead>
                <tr>
                    <th>MemberID</th>
                    <th>UserName</th>
                    <th>Sex</th>
                    <th>Address</th>
                    <th>BirthDay</th>
                    <th>Online</th>
                    <th>Position</th>
                    <th>Actions</th>
                </tr>
            </thead>
            <tbody>
                <logic:iterate id="useritem" name="User" property="user">
                    <tr>
                        <td>${useritem.userId}</td>
                        <td>${useritem.userName}</td>
                        <td>${useritem.sex}</td>
                        <td>${useritem.address}</td>
                        <td>${useritem.birthday}</td>
                        <td>${useritem.status}</td>
                        <td>${useritem.professional}</td>
                        <td><a href="../userDelete.do?userId=${useritem.userId}" onclick="return confirm('Do you want to delete this Member ?')" title="Delete Member"><img src="<%=request.getContextPath()%>/_assets/imagesAdmin/cancel.jpg" alt="Delete"></a></td>
                    </tr>
                </logic:iterate>
            </tbody>
        </table>
    </div>

    <%@include file="_commonAdmin/footer.jsp" %>
</body>
</html>


